﻿import request from '/@/utils/request';
enum Api {
  AddIotdevicetemperature = '/api/iotdevicetemperature/add',
  DeleteIotdevicetemperature = '/api/iotdevicetemperature/delete',
  UpdateIotdevicetemperature = '/api/iotdevicetemperature/update',
  PageIotdevicetemperature = '/api/iotdevicetemperature/page',
  DetailIotdevicetemperature = '/api/iotdevicetemperature/detail',
}

// 增加温度计
export const addIotdevicetemperature = (params?: any) =>
	request({
		url: Api.AddIotdevicetemperature,
		method: 'post',
		data: params,
	});

// 删除温度计
export const deleteIotdevicetemperature = (params?: any) => 
	request({
			url: Api.DeleteIotdevicetemperature,
			method: 'post',
			data: params,
		});

// 编辑温度计
export const updateIotdevicetemperature = (params?: any) => 
	request({
			url: Api.UpdateIotdevicetemperature,
			method: 'post',
			data: params,
		});

// 分页查询温度计
export const pageIotdevicetemperature = (params?: any) => 
	request({
			url: Api.PageIotdevicetemperature,
			method: 'post',
			data: params,
		});

// 详情温度计
export const detailIotdevicetemperature = (id: any) => 
	request({
			url: Api.DetailIotdevicetemperature,
			method: 'get',
			data: { id },
		});


